package com.lxh.demo.eureka_feign_client;

import com.lxh.eurekafeign.common.api.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @create: 2019-08-18 15:22
 * @author: xiaoh.luo001@bkjk.com
 * @description: 测试接口类
 **/
@Slf4j
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/test")
    public String test() {
        return testService.getName();
    }
}
